package ru.ifmo.math.matrix;

/**
 * @author avhaliullin
 */
public class ArrayMatrix implements BinaryMatrix {
    private final byte[][] content;

    public ArrayMatrix(BinaryMatrix matrix) {
        content = MatrixUtil.toArray(matrix);
    }

    public ArrayMatrix(byte[][] content) {
        this.content = content;
    }

    public byte get(int row, int col) {
        return content[row][col];
    }

    public int getWidth() {
        return content[0].length;
    }

    public int getHeight() {
        return content.length;
    }
}
